﻿<%@ import Namespace="DotNetNuke" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CategoryList.ascx.cs" Inherits="gdlmo.DNN.Modules.Article.CategoryList" %>
<asp:datagrid id="grdCategories" runat="server" datakeyfield="CategoryID" enableviewstate="False"
	autogeneratecolumns="False" BorderWidth="0px" Width="100%" summary="This table shows Categories.">
	<Columns>
		<asp:TemplateColumn>
			<HeaderStyle Width="30px"></HeaderStyle>
			<ItemTemplate>
				<asp:HyperLink NavigateUrl='<%# EditUrl("CategoryID",DataBinder.Eval(Container, "DataItem.CategoryID").ToString(),"CategoryEdit") %>' Visible='<%# MyIsEditable(DataBinder.Eval(Container.DataItem, "CreatedByUser").ToString()) %>' runat="server" ID="Hyperlink2">
					<asp:Image ID=Hyperlink1Image Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible='<%# MyIsEditable(DataBinder.Eval(Container.DataItem, "CreatedByUser").ToString()) %>' resourcekey="Edit"/>
				</asp:HyperLink>					
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:BoundColumn DataField="Name" HeaderText="分类名称">
			<HeaderStyle Width="200px" CssClass="NormalBold"></HeaderStyle>
			<ItemStyle Wrap="False" CssClass="Normal">
			</ItemStyle>
		</asp:BoundColumn>
		<asp:BoundColumn DataField="Description" HeaderText="描述">
			<HeaderStyle CssClass="NormalBold"></HeaderStyle>
			<ItemStyle Wrap="False" CssClass="Normal"></ItemStyle>
		</asp:BoundColumn>
		<asp:BoundColumn DataField="CreatedByUser" HeaderText="创建用户">
			<HeaderStyle CssClass="NormalBold">	</HeaderStyle>
			<ItemStyle Wrap="False" CssClass="Normal"></ItemStyle>
		</asp:BoundColumn>
		<asp:TemplateColumn HeaderText="启用">
			<HeaderStyle HorizontalAlign="Center" Width="40px" CssClass="NormalBold"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" CssClass="Normal"></ItemStyle>
			<ItemTemplate>
				<asp:Image Runat="server" ID="imgActived" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "IsActive", "~/images/{0:G}.gif") %>'/>
			</ItemTemplate>
		</asp:TemplateColumn>

	</Columns>
</asp:datagrid>
